﻿using BaseAPI;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace MemorySiteServer.Models
{
    public class Favorite: BaseEntity
    {
        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(32)]
        [Required]
        public string Name { get; set; }
        /// <summary>
        /// 链接
        /// </summary>
        [Required]
        public string Url { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 所属目录
        /// </summary>
        public long FavoriteGroupID { get; set; }
        public virtual FavoriteGroup FavoriteGroup { get; set; }
    }
}
